<!-- 验光表 -->
<template>
  <div>

    <div v-for="(item,index) in optometryList">
      <!--验光处方类型(1-远用,2-近用,3-隐形,4-渐进/双光,5-中用,6-角膜塑形镜,7-视觉训练,8-角膜塑形镜VST,9-角膜塑形镜CRT,10-RGP,11-药水)-->
      <!-- 远用 -->
      <table v-if="!item.optType || item.optType == 1" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="9">
            远用
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <th class="width-145"></th>
          <th>球镜</th>
          <th>柱镜</th>
          <th>轴向</th>
          <th>三棱镜</th>
          <th>基底</th>
          <th>远用瞳距(mm)</th>
          <th>瞳高(mm)</th>
          <th>远用VA</th>
        </tr>
        <tr style="text-align: center;">
          <td>OD</td>
          <td><el-input class="table-input" v-model="item.ballGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.arriseGlassOd"></el-input></td>
          <td>
            <el-select class="table-select" v-model="item.basisOd">
              <el-option v-for="bizItem in bizData.basalTypeData" :value="bizItem.value" :label="bizItem.label" :key="bizItem.value"></el-option>
            </el-select>
          </td>
          <td><el-input class="table-input" v-model="item.farPupilDistanceOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.pupilHighOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.farUseOd"></el-input></td>
        </tr>
        <tr>
          <td>OS</td>
          <td><el-input class="table-input" v-model="item.ballGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.arriseGlassOs"></el-input></td>
          <td>
            <el-select class="table-select" v-model="item.basisOs">
              <el-option v-for="bizItem in bizData.basalTypeData" :value="bizItem.value" :label="bizItem.label" :key="bizItem.value"></el-option>
            </el-select>
          </td>
          <td><el-input class="table-input" v-model="item.farPupilDistanceOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.pupilHighOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.farUseOs"></el-input></td>
        </tr>
        <tr>
          <td colspan="3" class="colspan-td">
            <el-form label-width="120px">
            <el-form-item label="建议镜片材质">
              <el-input class="table-input" v-model="item.suggestMaterial"></el-input>
            </el-form-item>
            </el-form>
          </td>
          <td colspan="3" class="colspan-td">
            <el-form label-width="80px">
            <el-form-item label="处理方式">
              <el-input class="table-input" v-model="item.handleMethod"></el-input>
            </el-form-item>
            </el-form>
          </td>
          <td colspan="3" class="colspan-td">
            <el-form label-width="80px">
            <el-form-item label="建议镜框">
              <el-input class="table-input" v-model="item.suggestGlass"></el-input>
            </el-form-item>
            </el-form>
          </td>
        </tr>
        <tr>
          <td>备注</td>
          <td colspan="8"><el-input type="textarea" :rows="1" v-model="item.memo"></el-input></td>
        </tr>
        <tr>
          <th></th>
          <th>旧瞳距(mm)</th>
          <th>片高(mm)</th>
          <th>片宽(mm)</th>
          <th>中梁(mm)</th>
          <th>镜片通道(mm)</th>
          <th>对角线(mm)</th>
          <th>框型</th>
          <th>直径(mm)</th>
        </tr>
        <tr>
          <td>手动填写</td>
          <td><el-input class="table-input" v-model="item.oldPupilDistance"></el-input></td>
          <td><el-input class="table-input" v-model="item.chipHeight"></el-input></td>
          <td><el-input class="table-input" v-model="item.chipWidth"></el-input></td>
          <td><el-input class="table-input" v-model="item.centreSill"></el-input></td>
          <td><el-input class="table-input" v-model="item.glassesChannel"></el-input></td>
          <td><el-input class="table-input" v-model="item.diagonal"></el-input></td>
          <td><el-input class="table-input" v-model="item.frameModel"></el-input></td>
          <td><el-input class="table-input" v-model="item.diameter"></el-input></td>
        </tr>
      </table>
      <!-- 近用 -->
      <table v-if="item.optType == 2" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="9">
            近用
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <th class="width-145"></th>
          <th>球镜</th>
          <th>柱镜</th>
          <th>轴向</th>
          <th>三棱镜</th>
          <th>基底</th>
          <th>近用瞳距(mm)</th>
          <th>瞳高(mm)</th>
          <th>近用VA</th>
        </tr>
        <tr style="text-align: center;">
          <td>OD</td>
          <td><el-input class="table-input" v-model="item.ballGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.arriseGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.basisOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearPupilDistanceOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.pupilHighOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearUseOd"></el-input></td>
        </tr>
        <tr>
          <td>OS</td>
          <td><el-input class="table-input" v-model="item.ballGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.arriseGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.basisOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearPupilDistanceOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.pupilHighOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearUseOs"></el-input></td>
        </tr>
        <tr>
          <td colspan="3" class="colspan-td">
            <el-form label-width="120px">
            <el-form-item label="建议镜片材质">
              <el-input class="table-input" v-model="item.suggestMaterial"></el-input>
            </el-form-item>
            </el-form>
          </td>
          <td colspan="3" class="colspan-td">
            <el-form label-width="80px">
            <el-form-item label="处理方式">
              <el-input class="table-input" v-model="item.handleMethod"></el-input>
            </el-form-item>
            </el-form>
          </td>
          <td colspan="3" class="colspan-td">
            <el-form label-width="80px">
            <el-form-item label="建议镜框">
              <el-input class="table-input" v-model="item.suggestGlass"></el-input>
            </el-form-item>
            </el-form>
          </td>
        </tr>
        <tr>
          <td>备注</td>
          <td colspan="8"><el-input type="textarea" :rows="1" v-model="item.memo"></el-input></td>
        </tr>
        <tr>
          <th></th>
          <th>旧瞳距(mm)</th>
          <th>片高(mm)</th>
          <th>片宽(mm)</th>
          <th>中梁(mm)</th>
          <th>镜片通道(mm)</th>
          <th>对角线(mm)</th>
          <th>框型</th>
          <th>直径(mm)</th>
        </tr>
        <tr>
          <td>手动填写</td>
          <td><el-input class="table-input" v-model="item.oldPupilDistance"></el-input></td>
          <td><el-input class="table-input" v-model="item.chipHeight"></el-input></td>
          <td><el-input class="table-input" v-model="item.chipWidth"></el-input></td>
          <td><el-input class="table-input" v-model="item.centreSill"></el-input></td>
          <td><el-input class="table-input" v-model="item.glassesChannel"></el-input></td>
          <td><el-input class="table-input" v-model="item.diagonal"></el-input></td>
          <td><el-input class="table-input" v-model="item.frameModel"></el-input></td>
          <td><el-input class="table-input" v-model="item.diameter"></el-input></td>
        </tr>
      </table>
      <!-- 渐进/双光 -->
      <table v-if="item.optType == 4" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="12">
            双光/渐进
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <th class="width-145">双光/渐进</th>
          <th>球镜</th>
          <th>柱镜</th>
          <th>轴向</th>
          <th>Add</th>
          <th>三棱镜</th>
          <th>基底</th>
          <th>远用瞳距(mm)</th>
          <th>近用瞳距(mm)</th>
          <th>瞳高(mm)</th>
          <th>远用VA</th>
          <th>近用VA</th>
        </tr>
        <tr style="text-align: center;">
          <td>OD</td>
          <td><el-input class="table-input" v-model="item.ballGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.addOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.arriseGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.basisOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.farPupilDistanceOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearPupilDistanceOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.pupilHighOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.farUseOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearUseOd"></el-input></td>
        </tr>
        <tr>
          <td>OS</td>
          <td><el-input class="table-input" v-model="item.ballGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.addOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.arriseGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.basisOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.farPupilDistanceOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearPupilDistanceOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.pupilHighOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.farUseOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.optometryData.nearUseOs"></el-input></td>
        </tr>
        <tr>
          <td colspan="3" class="colspan-td">
            <el-form label-width="120px">
            <el-form-item label="建议镜片材质">
              <el-input class="table-input" v-model="item.suggestMaterial"></el-input>
            </el-form-item>
            </el-form>
          </td>
          <td colspan="3" class="colspan-td">
            <el-form label-width="80px">
            <el-form-item label="处理方式">
              <el-input class="table-input" v-model="item.handleMethod"></el-input>
            </el-form-item>
            </el-form>
          </td>
          <td colspan="3" class="colspan-td">
            <el-form label-width="80px">
            <el-form-item label="建议镜框">
              <el-input class="table-input" v-model="item.suggestGlass"></el-input>
            </el-form-item>
            </el-form>
          </td>
        </tr>
        <tr>
          <td>备注</td>
          <td colspan="11"><el-input type="textarea" :rows="1" v-model="item.memo"></el-input></td>
        </tr>
        <tr>
          <th></th>
          <th>旧瞳距(mm)</th>
          <th>片高(mm)</th>
          <th>片宽(mm)</th>
          <th>中梁(mm)</th>
          <th>镜片通道(mm)</th>
          <th>对角线(mm)</th>
          <th>框型</th>
          <th>直径(mm)</th>
          <th>立线</th>
          <th>面弯</th>
          <th>前倾角</th>
        </tr>
        <tr>
          <td>手动填写</td>
          <td><el-input class="table-input" v-model="item.oldPupilDistance"></el-input></td>
          <td><el-input class="table-input" v-model="item.chipHeight"></el-input></td>
          <td><el-input class="table-input" v-model="item.chipWidth"></el-input></td>
          <td><el-input class="table-input" v-model="item.centreSill"></el-input></td>
          <td><el-input class="table-input" v-model="item.glassesChannel"></el-input></td>
          <td><el-input class="table-input" v-model="item.diagonal"></el-input></td>
          <td><el-input class="table-input" v-model="item.frameModel"></el-input></td>
          <td><el-input class="table-input" v-model="item.diameter"></el-input></td>
          <td><el-input class="table-input" v-model="item.verticalLine"></el-input></td>
          <td><el-input class="table-input" v-model="item.faceBending"></el-input></td>
          <td><el-input class="table-input" v-model="item.frontRake"></el-input></td>
        </tr>
      </table>
      <!-- 中用 -->
      <table v-if="item.optType == 5" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="9">
            中用
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <th class="width-145">中用</th>
          <th>球镜</th>
          <th>柱镜</th>
          <th>轴向</th>
          <th>三棱镜</th>
          <th>基底</th>
          <th>中用瞳距(mm)</th>
          <th>瞳高(mm)</th>
          <th>中用VA</th>
        </tr>
        <tr style="text-align: center;">
          <td>OD</td>
          <td><el-input class="table-input" v-model="item.ballGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.arriseGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.basisOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.farPupilDistanceOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.pupilHighOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.farUseOd"></el-input></td>
        </tr>
        <tr>
          <td>OS</td>
          <td><el-input class="table-input" v-model="item.ballGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.arriseGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.basisOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.farPupilDistanceOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.pupilHighOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.farUseOs"></el-input></td>
        </tr>
        <tr>
          <td colspan="3" class="colspan-td">
            <el-form label-width="120px">
            <el-form-item label="建议镜片材质">
              <el-input class="table-input" v-model="item.suggestMaterial"></el-input>
            </el-form-item>
            </el-form>
          </td>
          <td colspan="3" class="colspan-td">
            <el-form label-width="80px">
            <el-form-item label="处理方式">
              <el-input class="table-input" v-model="item.handleMethod"></el-input>
            </el-form-item>
            </el-form>
          </td>
          <td colspan="3" class="colspan-td">
            <el-form label-width="80px">
            <el-form-item label="建议镜框">
              <el-input class="table-input" v-model="item.suggestGlass"></el-input>
            </el-form-item>
            </el-form>
          </td>
        </tr>
        <tr>
          <td>备注</td>
          <td colspan="8"><el-input type="textarea" :rows="1" v-model="item.memo"></el-input></td>
        </tr>
        <tr>
          <th></th>
          <th>旧瞳距(mm)</th>
          <th>片高(mm)</th>
          <th>片宽(mm)</th>
          <th>中梁(mm)</th>
          <th>镜片通道(mm)</th>
          <th>对角线(mm)</th>
          <th>框型</th>
          <th>直径(mm)</th>
        </tr>
        <tr>
          <td>手动填写</td>
          <td><el-input class="table-input" v-model="item.oldPupilDistance"></el-input></td>
          <td><el-input class="table-input" v-model="item.chipHeight"></el-input></td>
          <td><el-input class="table-input" v-model="item.chipWidth"></el-input></td>
          <td><el-input class="table-input" v-model="item.centreSill"></el-input></td>
          <td><el-input class="table-input" v-model="item.glassesChannel"></el-input></td>
          <td><el-input class="table-input" v-model="item.diagonal"></el-input></td>
          <td><el-input class="table-input" v-model="item.frameModel"></el-input></td>
          <td><el-input class="table-input" v-model="item.diameter"></el-input></td>
        </tr>
      </table>
      <!-- 隐形 -->
      <table v-if="item.optType == 3" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="10">
            隐形
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <th class="width-145"></th>
          <th>BC</th>
          <th>球镜</th>
          <th>柱镜</th>
          <th>轴向</th>
          <th>曲率</th>
          <th>直径</th>
          <th>隐形VA</th>
          <th>适用镜片</th>
          <th>片/盒数</th>
        </tr>
        <tr style="text-align: center;">
          <td>OD</td>
          <td><el-input class="table-input" v-model="item.bcOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.ballGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.curvatureOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.diameterOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.invisibleOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.suitableGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.numberBoxOd"></el-input></td>
        </tr>
        <tr>
          <td>OS</td>
          <td><el-input class="table-input" v-model="item.bcOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.ballGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.curvatureOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.diameterOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.invisibleOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.suitableGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.numberBoxOs"></el-input></td>
        </tr>
        <tr>
          <td colspan="9" class="colspan-td">
            <el-form label-width="120px">
            <el-form-item label="建议护理液">
              <el-input class="table-input" v-model="item.suggestMaterial"></el-input>
            </el-form-item>
            </el-form>
          </td>
        </tr>
        <tr>
          <td>备注</td>
          <td colspan="9"><el-input type="textarea" :rows="1" v-model="item.memo"></el-input></td>
        </tr>
      </table>
      <!-- 角膜塑形镜 -->
      <table v-if="item.optType == 6" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="16">
            角膜塑形镜
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <th class="width-145"></th>
          <th>球镜</th>
          <th>柱镜</th>
          <th>轴向</th>
          <th>平K</th>
          <th>陡K</th>
          <th>e值</th>
          <th>角膜直径</th>
          <th>试戴片K</th>
          <th>K1</th>
          <th>K2</th>
          <th>光度</th>
          <th>降幅</th>
          <th>直径</th>
          <th>适用镜片</th>
          <th>片/盒数</th>
        </tr>
        <tr style="text-align: center;">
          <td>OD</td>
          <td><el-input class="table-input" v-model="item.ballGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.smoothKOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.steepKOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.valueEOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.cornealDiameterOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.tryKOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.k1Od"></el-input></td>
          <td><el-input class="table-input" v-model="item.k2Od"></el-input></td>
          <td><el-input class="table-input" v-model="item.luminosityOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.declineOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.diameterOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.suitableGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.numberBoxOd"></el-input></td>
        </tr>
        <tr>
          <td>OS</td>
          <td><el-input class="table-input" v-model="item.ballGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.smoothKOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.steepKOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.valueEOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.cornealDiameterOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.tryKOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.k1Os"></el-input></td>
          <td><el-input class="table-input" v-model="item.k2Os"></el-input></td>
          <td><el-input class="table-input" v-model="item.luminosityOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.declineOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.diameterOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.suitableGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.numberBoxOs"></el-input></td>
        </tr>
      </table>
      <!-- 视觉训练 -->
      <table v-if="item.optType == 7" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="10">
            视觉训练
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <th class="width-145">视觉训练</th>
          <th>球镜</th>
          <th>柱镜</th>
          <th>轴向</th>
          <th>三棱镜</th>
          <th>基底</th>
          <th>远用瞳距(mm)</th>
          <th>近用瞳距(mm)</th>
          <th>远用VA</th>
          <th>近用VA</th>
        </tr>
        <tr style="text-align: center;">
          <td>OD</td>
          <td><el-input class="table-input" v-model="item.ballGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.arriseGlassOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.basisOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.farPupilDistanceOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearPupilDistanceOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.farUseOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearUseOd"></el-input></td>
        </tr>
        <tr>
          <td>OS</td>
          <td><el-input class="table-input" v-model="item.ballGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.postGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.axesOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.arriseGlassOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.basisOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.farPupilDistanceOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearPupilDistanceOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.farUseOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.nearUseOs"></el-input></td>
        </tr>
      </table>
      <!-- 角膜塑形镜VST -->
      <table v-if="item.optType == 8" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="13">
            角膜塑形镜VST
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <th class="width-145">角膜塑形镜VST</th>
          <th>试戴片编号</th>
          <th>FK</th>
          <th>曲率半径</th>
          <th>AC</th>
          <th>降幅</th>
          <th>DIA</th>
          <th>BC</th>
          <th>CP/CLY</th>
          <th>e值</th>
          <th>VA</th>
          <th>镜片颜色</th>
          <th>品牌</th>
        </tr>
        <tr style="text-align: center;">
          <td>OD</td>
          <td><el-input class="table-input" v-model="item.tryNumberOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.fkOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.curvatureRadiusOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.acOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.declineOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.diaOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.bcOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.cpClyOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.valueEOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.vaOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.glassColorOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.brandOd"></el-input></td>
        </tr>
        <tr>
          <td>OS</td>
          <td><el-input class="table-input" v-model="item.tryNumberOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.fkOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.curvatureRadiusOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.acOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.declineOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.diaOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.bcOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.cpClyOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.valueEOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.vaOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.glassColorOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.brandOs"></el-input></td>
        </tr>
        <tr>
          <td>备注</td>
          <td colspan="9"><el-input type="textarea" :rows="1" v-model="item.memo"></el-input></td>
        </tr>
      </table>
      <!-- 角膜塑形镜CRT -->
      <table v-if="item.optType == 9" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="12">
            角膜塑形镜CRT
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <th class="width-145">角膜塑形镜CRT</th>
          <th>试戴片编号</th>
          <th>BC</th>
          <th>RZD</th>
          <th>LZA</th>
          <th>RZD2</th>
          <th>LZA2</th>
          <th>降幅</th>
          <th>DIA</th>
          <th>VA</th>
          <th>镜片颜色</th>
          <th>品牌</th>
        </tr>
        <tr style="text-align: center;">
          <td>OD</td>
          <td><el-input class="table-input" v-model="item.tryNumberOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.bcOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.rzdOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.lzaOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.rzdOd2"></el-input></td>
          <td><el-input class="table-input" v-model="item.lzaOd2"></el-input></td>
          <td><el-input class="table-input" v-model="item.declineOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.diaOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.vaOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.glassColorOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.brandOd"></el-input></td>
        </tr>
        <tr>
          <td>OS</td>
          <td><el-input class="table-input" v-model="item.tryNumberOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.bcOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.rzdOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.lzaOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.rzdOs2"></el-input></td>
          <td><el-input class="table-input" v-model="item.lzaOs2"></el-input></td>
          <td><el-input class="table-input" v-model="item.declineOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.diaOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.vaOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.glassColorOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.brandOs"></el-input></td>
        </tr>
        <tr>
          <td>备注</td>
          <td colspan="9"><el-input type="textarea" :rows="1" v-model="item.memo"></el-input></td>
        </tr>
      </table>
      <!-- RGP -->
      <table v-if="item.optType == 10" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="8">
            RGP
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <th class="width-145">RGP</th>

          <th>屈光度</th>
          <th>BC</th>
          <th>DIA</th>
          <th>散光</th>
          <th>镜片颜色</th>
          <th>特殊设计</th>
          <th>品牌</th>
        </tr>
        <tr style="text-align: center;">
          <td>OD</td>
          <td><el-input class="table-input" v-model="item.diopterOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.bcOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.diaOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.astigmiaOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.glassColorOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.specialDesignOd"></el-input></td>
          <td><el-input class="table-input" v-model="item.brandOd"></el-input></td>
        </tr>
        <tr>
          <td>OS</td>
          <td><el-input class="table-input" v-model="item.diopterOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.bcOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.diaOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.astigmiaOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.glassColorOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.specialDesignOs"></el-input></td>
          <td><el-input class="table-input" v-model="item.brandOs"></el-input></td>
        </tr>
        <tr>
          <td>备注</td>
          <td colspan="9"><el-input type="textarea" :rows="1" v-model="item.memo"></el-input></td>
        </tr>
      </table>
      <!-- 药品 -->
      <table v-if="item.optType == 11" class="miui-table" bgcolor="#dfffdf">
        <tr>
          <th colspan="2">
            药品
            <el-button style="float: right;margin-right: 15px;" type="danger" @click="optDelHandle(index)">删除</el-button>
          </th>
        </tr>
        <tr>
          <td class="width-145">备注</td>
          <td colspan="9"><el-input type="textarea" :rows="1" v-model="item.memo"></el-input></td>
        </tr>
      </table>
    </div>

  </div>
</template>

<script>
  import { mapGetters } from 'vuex'
  export default {
    props:['optometryList','optometryData','optType'],
    data () {
      return {
      }
    },
    computed:{
      ...mapGetters(['bizData'])
    },
    methods: {
      optDelHandle(index){
        this.optometryList.splice(index,1)
      }
    }
  }
</script>

<style lang="scss" scoped>
  .miui-table {
    width: 100%;
    margin-bottom: 10px;
    .table-input {
     // width: 50px;
    }
    .table-select {
      width: 90px;
    }
    .el-table--enable-row-hover .el-table__body tr:hover>td {
      background-color: #97baf6;
    }
    .width-145 {
      width: 145px;
    }

    tr td,
    tr th {
      border: 2px solid #fff;
      text-align: center;
      padding: 5px 5px;
    }

    .colspan-td {
      text-align: left !important;
    }
  }
</style>
